﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
    CodeBehind="StatisticsHospitalByMonth.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.Statistics.StatisticsHospitalByMonth"
    Title="医院月报表" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script type="text/javascript">
        function displayDIV() {
            if (document.getElementById("tabcontent2").style.display == "none") {
                document.getElementById("tabcontent2").style.display = "block"
                document.getElementById("btnDis").value = "隐藏图表"
            }
            else {
                document.getElementById("tabcontent2").style.display = "none"
                document.getElementById("btnDis").value = "显示图表"
            }

        }
        //        function dis(id) {
        //            document.getElementById("chart1").style.display = "none";
        //            document.getElementById("chart2").style.display = "none";
        //            document.getElementById(id).style.display = "block"

        //        }
    </script>

    <div id="tabnav">
        <ul>
            <li class="active"><a href="#">月报</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("医院季报")%>'><a href="StatisticsHospitalBySeason.aspx?Y=<%=Hid %>">
                季报</a></li>
            <li style='<%=HZ.Supervise.Web.Function.CheckMenuByUserID("医院年报")%>'><a href="StatisticsHospitalByYear.aspx?Y=<%=Hid %>">
                年报</a></li>
        </ul>
    </div>
    <div>
        <input id="btnDis" type="button" value="隐藏图表" class="btn" onclick="displayDIV()" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Text="查询："></asp:Label>
        <asp:DropDownList ID="droYear" runat="server" Width="101px" Height="20px">
            <asp:ListItem>2010</asp:ListItem>
            <asp:ListItem>2011</asp:ListItem>
            <asp:ListItem>2012</asp:ListItem>
        </asp:DropDownList>
        年<asp:DropDownList ID="droMonth" runat="server" Width="88px" Height="20px">
            <%--            <asp:ListItem Value="-1">请选择</asp:ListItem>--%>
            <asp:ListItem Value="01">1</asp:ListItem>
            <asp:ListItem Value="02">2</asp:ListItem>
            <asp:ListItem Value="03">3</asp:ListItem>
            <asp:ListItem Value="04">4</asp:ListItem>
            <asp:ListItem Value="05">5</asp:ListItem>
            <asp:ListItem Value="06">6</asp:ListItem>
            <asp:ListItem Value="07">7</asp:ListItem>
            <asp:ListItem Value="08">8</asp:ListItem>
            <asp:ListItem Value="09">9</asp:ListItem>
            <asp:ListItem Value="10">10</asp:ListItem>
            <asp:ListItem Value="11">11</asp:ListItem>
            <asp:ListItem Value="12">12</asp:ListItem>
        </asp:DropDownList>
        月<asp:Button ID="Button1" runat="server" Text="查  询" CssClass="btn" OnClick="Button1_Click" />&nbsp;&nbsp;&nbsp<%--;<a
            href="javascript:dis('chart1')">金额图表</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="javascript:dis('chart2')">
                数量图表</a>--%><a href="javascript:void(0)">金额图表</a>
    </div>
    &nbsp;<div id="tabcontent2" class="importlist">
        <asp:Label ID="lblnull" runat="server" Text="无数据" Visible="false"></asp:Label>
        <div id="chart1">
            <asp:Chart ID="ChartPurchasing" runat="server" BackColor="#D3DFF0" BackGradientStyle="TopBottom"
                BorderDashStyle="Solid" BorderWidth="2" BorderColor="26, 59, 105" Width="1100px"
                Height="370">
                <Legends>
                    <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                        Docking="Right" Alignment="Near">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <ChartAreas>
                    <asp:ChartArea Name="ChartHosPurchasing" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
                        BackColor="64, 165, 191, 228" ShadowColor="Transparent" BackGradientStyle="TopBottom">
                        <Position Y="3" Height="92" Width="80" X="2"></Position>
                        <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>
        <%--<div id="chart2" style="display: none">
            <asp:Chart ID="ChartInStorage" runat="server" BackColor="#D3DFF0" BorderDashStyle="Solid"
                BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105" Width="1100"
                Height="370">
                <Legends>
                    <asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
                        Docking="Right" Alignment="Near">
                    </asp:Legend>
                </Legends>
                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                <ChartAreas>
                    <asp:ChartArea Name="ChartHosStorage" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
                        BackSecondaryColor="Transparent" BackColor="64, 165, 191, 228" ShadowColor="Transparent"
                        BackGradientStyle="TopBottom">
                        <Area3DStyle Rotation="10" Inclination="15" WallWidth="0" />
                        <Position Y="3" Height="92" Width="80" X="2"></Position>
                        <AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisY>
                        <AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
                            <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
                            <MajorGrid LineColor="64, 64, 64, 64" />
                        </AxisX>
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
        </div>--%>
    </div>
    <div>
        <asp:GridView ID="gvwStatisticsHos" runat="server" AutoGenerateColumns="False" CellPadding="1"
            CellSpacing="3" CssClass="mainlist">
            <Columns>
                <asp:BoundField DataField="daytime" HeaderText="日期" ReadOnly="true" />
                <asp:BoundField DataField="addDataColumn" HeaderText="采购类型" />
                <asp:BoundField DataField="PurchaseAmountTotal" HeaderText="采购总金额" ReadOnly="True" />
                <asp:BoundField DataField="DistributeAmountTotal" HeaderText="配送总金额" />
                <asp:BoundField DataField="WareHouseAmountTotal" HeaderText="入库总金额" ReadOnly="True" />
                <asp:BoundField DataField="AddDistributeRate" HeaderText="配送率" />
                <asp:BoundField DataField="addDataColumnRate" HeaderText="入库率" ReadOnly="True" />
            </Columns>
        </asp:GridView>
    </div>
    <div>
        <span style="text-align: left">
            <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span></div>
    &nbsp;
    <div id="divshow" runat="server" class="listip">
        <ul>
            <li>统计：<asp:Label ID="lblCount" runat="server"></asp:Label></li>
            <li>说明:1.<span>医院排名数据是静态数据，每24小时统计一次。</span> </li>
            <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.<span>依据《关于进一步加强基层医疗卫生机构基本药物集中采购管理的通知》，入库率计算方式为：入库金额/采购金额。</span>
            </li>
        </ul>
    </div>
</asp:Content>
